package com.nb.fly.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * ${NMAE}
 *
 * @author Gwg
 * @date 2020/6/28
 **/

@Data
public class SaveShopRequest {

    @ApiModelProperty(value = "超市名称")
    @NotBlank(message = "请填写超市名称")
    private String name;

    @ApiModelProperty(value = "超市地址")
    @NotBlank(message = "请输入超市地址")
    private String address;

    @ApiModelProperty(value = "超市地址位置")
    @NotNull(message = "请填超市地址位置")
    private Double longitude;

    @ApiModelProperty(value = "超市地址位置")
    @NotNull(message = "请填超市地址位置")
    private Double latitude;

}
